package com.xmall.define.request.es;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class EsSort implements Serializable {

    @NotBlank(message = "排序字段不能为空")
    private String field;

    @NotNull(message = "排序字段不能为空")
    private String sort;
}
